package com.itheima.service;

import com.itheima.api.OmsOrderSettingApi;
import com.itheima.pojo.OmsOrderSetting;
import com.itheima.vo.MinioVo;
import org.apache.dubbo.config.annotation.DubboReference;
import org.springframework.stereotype.Service;

/**
 * @author 芝士雪豹
 * @create 2022/10/15/19:44
 */
@Service
public class OmsOrderSettingService {
    @DubboReference
    private OmsOrderSettingApi api;

    //修改指定订单设置
    public MinioVo findOne(Integer id) {
        MinioVo vo = api.findOne(id);
        return vo;
    }

    //修改指定订单设置
    public MinioVo update(Integer id, OmsOrderSetting dto) {
        MinioVo vo = api.update(id, dto);
        return vo;
    }
}
